package com.khiker.tree.binary_tree;

public class P104_MaxDepth {
	public int maxDepth(TreeNode root) {
		return root == null?0:Math.max(maxDepth(root.left), maxDepth(root.right)) + 1;
	}
}
